package com.zjj.day4.person;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/22
 */
class Manager extends Employee {
    private String level;

    public Manager(String name, String address, String ID, double salary, int workYears, String level) {
        super(name, address, ID, salary, workYears);
        this.level = level;
    }

    public Manager() {
    }

    public Manager(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Manager{name='" + name + "', address='" + address + "', ID='" + ID + "', salary=" + salary + ", workYears=" + workYears + ", level='" + level + "'}";
    }

    @Override
    public void raiseSalary() {
        this.salary *= 1.2;
        System.out.println(name + " 涨薪后工资为: " + salary);
    }

    /**
     * 获取
     * @return level
     */
    public String getLevel() {
        return level;
    }

    /**
     * 设置
     * @param level
     */
    public void setLevel(String level) {
        this.level = level;
    }
}